<?php
namespace ZyucMini\Components\User\Services;

use ZyucMini\Components\Connections\Connections;
use ZyucMini\Components\User\Models\ProjUserSummary;
use ZyucMini\Components\User\Models\UxtUser;

class User {

    public function __construct() {
        Connections::initAll();
    }

    public function getSummary($userId) {
        $projUserSummary = new ProjUserSummary();
        $result = $projUserSummary->find($userId);
        return $result;
    }

    public function getUsers() {
        $users = new UxtUser();
        $result = $users->fields('user_id, user_name')->where('user_disabled', '=', 0)->all();
        return $result;
    }
}
?>